
from task.base.baseApi import Base
import time
import task.pageObject
import allure

class PageOrder(Base):
    @allure.step('选择收货地址')
    def choose_address(self):
        self.base_click(task.pageObject.loc_order_addr)
        time.sleep(1)

    @allure.step('选择支付方式')
    def choose_pay(self):
        self.base_click(task.pageObject.loc_order_choose_pay)

    @allure.step('留言')
    def input(self):
        self.base_input(task.pageObject.loc_order_input,task.pageObject.value_order_input)

    @allure.step('点击提交订单')
    def pay(self):
        self.base_click(task.pageObject.loc_order_pay)
        time.sleep(5)


 